import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import jquery from "jquery"
import 'element-ui/lib/theme-chalk/index.css'
import './assets/static/iconfont/iconfont.css'
import ElementUI from 'element-ui'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import axios from 'axios'

Vue.use(iView)
Vue.use(ElementUI)
Vue.prototype.$ = jquery
Vue.config.productionTip = false
Vue.prototype.$axios = axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

axios.defaults.baseURL = 'http://localhost:10010';//后端开发环境地址
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8';//配置请求头信息。
//axios.defaults.headers.common['accessToken'] = 'FA4C308D5E8F6409E01344ADDAEB4C71'